<?php
	
	$dbLink = '';
	function connectDb($dbName)
	{
		global $dbLink;
		
		$dbUsername = 'root';
		$dbHost = 'localhost';
		$password = '';
		
		$dbLink = mysqli_connect($dbHost,$dbUsername,$password,$dbName);
		
		if(!$dbLink)
		{
			throw new Exception('Data service is currently unavailable.');
		}
		else
		{
			return true;
			/*
			if(mysqli_select_db($dbLink,$dbName))
			{	
				return true;
			}
			else
			{
				throw new Exception('Data services could not be found.');
			}
			*/
		}
	}
?>